package com.fy.controller;


import com.fy.entity.Result;
import com.fy.service.IInsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 晓岩
 * @since 2022-06-06
 */
@RestController
@RequestMapping("/insu")
public class InsuranceController {
    @Autowired
    IInsuranceService iInsuranceService;

    @RequestMapping("del")
    public Result del(String ids){
        System.out.println(ids+"44444444444444444444444");
        String[] split = ids.split(",");
        System.out.println(split+"3333333333333333333333333");
        boolean b = iInsuranceService.removeById(split);
        if(b){
            return new Result(200,"","删除成功");
        }else{
            return new Result(201,"","删除失败");
        }
    }
}
